class foo { public bar: { (): number; (i: number): number; } = function() { return 1 }; }